package com.bluesky.jwf.example1.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PersonService {
	public static List<Person> getPeople() {

		List<Person> people = new ArrayList<Person>();

		Person p1 = new Person("jack", new Date(), "jack@123.com");
		Person p2 = new Person("tom", new Date(), "tom@123.com");
		Person p3 = new Person("rose", new Date(), "rose@123.com");
		Person p4 = new Person("rose1", new Date(), "rose@123.com");
		Person p5 = new Person("rose2", new Date(), "rose@123.com");
		Person p6 = new Person("rose3", new Date(), "rose@123.com");
		Person p7 = new Person("rose4", new Date(), "rose@123.com");
		Person p8 = new Person("rose5", new Date(), "rose@123.com");
		Person p9 = new Person("rose2", new Date(), "rose@123.com");
		Person p10 = new Person("rose3", new Date(), "rose@123.com");
		Person p11 = new Person("rose4", new Date(), "rose@123.com");
		Person p12 = new Person("rose5", new Date(), "rose@123.com");
		Person p13 = new Person("rose5", new Date(), "rose@123.com");
		
		
		people.add(p1);
		people.add(p2);		
		people.add(p3);
		people.add(p4);
		people.add(p5);
		people.add(p6);
		people.add(p7);
		people.add(p8);		
		people.add(p9);
		people.add(p10);
		people.add(p11);
		people.add(p12);
		people.add(p13);
	
		p1.addSubordinate(p2);
		p1.addSubordinate(p3);
		p1.addSubordinate(p4);
		
		p2.addSubordinate(p5);
		p2.addSubordinate(p6);
		p2.addSubordinate(p7);
		
		p3.addSubordinate(p8);
		p3.addSubordinate(p9);
		p3.addSubordinate(p10);
		
		p6.addSubordinate(p11);
		p6.addSubordinate(p12);
	
		p12.addSubordinate(p13);
		
		return people;
	}
}
